<div class='paying'>  
  <%= link_to_function "▶待发(#{project.paying_stages_count})",
            "show_stages_by_project_id_and_pay_status(#{project.id},'paying')",
            :class => :base,
            :style => show_or_hide?('paying') ? '':'display:none',
            :id => "project_#{project.id}_paying_stages_show_button",
            :title =>"展开查看#{project.paying_stages_count}个待发阶段" %>
  <%= link_to_function "▼待发(#{project.paying_stages_count})",
            "hide_stages_by_project_id_and_pay_status(#{project.id},'paying')",
            :class => :base_h,
            :id => "project_#{project.id}_paying_stages_hide_button",
            :style => show_or_hide?('paying') ? 'display:none':'',
            :title =>"折叠隐藏#{project.paying_stages_count}个待发阶段" %>：<b>￥</b>
  <small><%= number_with_precision project.paying_total_amount, :precision => 1 %></small>
</div>
<div class='paused'>
  <%= link_to_function "▶暂缓(#{project.paused_stages_count})",
            "show_stages_by_project_id_and_pay_status(#{project.id},'paused')",
            :class => :base,
            :id => "project_#{project.id}_paused_stages_show_button",
            :style => show_or_hide?('paused') ? '':'display:none',
            :title =>"展开查看#{project.paused_stages_count}个暂缓阶段" %>
  <%= link_to_function "▼暂缓(#{project.paused_stages_count})",
            "hide_stages_by_project_id_and_pay_status(#{project.id},'paused')",
            :class => :base_h,
            :id => "project_#{project.id}_paused_stages_hide_button",
            :style => show_or_hide?('paused') ? 'display:none':'',
            :title =>"折叠隐藏#{project.paused_stages_count}个暂缓阶段" %>：<b>￥</b>
  <small><%= number_with_precision project.paused_total_amount, :precision => 1 %></small>
</div>
<div class='payed'>
  <%= link_to_function "▶已发(#{project.payed_stages_count})",
            "show_stages_by_project_id_and_pay_status(#{project.id},'payed')",
            :class => :base,
            :id => "project_#{project.id}_payed_stages_show_button",
            :style => show_or_hide?('payed') ? '':'display:none',
            :title =>"展开查看#{project.payed_stages_count}个已发阶段" %>
  <%= link_to_function "▼已发(#{project.payed_stages_count})",
            "hide_stages_by_project_id_and_pay_status(#{project.id},'payed')",
            :class => :base_h,
            :id => "project_#{project.id}_payed_stages_hide_button",
            :style => show_or_hide?('payed') ? 'display:none':'',
            :title =>"折叠隐藏#{project.payed_stages_count}个已发阶段" %>：<b>￥</b>
  <small><%= number_with_precision project.payed_total_amount, :precision => 1 %></small>
</div>